package com.shpng.cheapenglish.entity;

import com.shpng.cheapenglish.db.UserUnit;

public class SUserUnit {

	private UserUnit dbUserUnit;

	private SUser user;

	public SUserUnit(UserUnit userUnit) {
		dbUserUnit = userUnit;
	}

	public SUserUnit(UserUnit userUnit, SUser user) {
		dbUserUnit = userUnit;
		this.user = user;
	}

	public UserUnit getUserUnit() {
		return dbUserUnit;
	}

	public Long getId() {
		return dbUserUnit.getId();
	}

	public long getUserId() {
		return dbUserUnit.getUserId();
	}

	public String getUnit() {
		return dbUserUnit.getUnit();
	}

	public void setUnit(String unit) {
		dbUserUnit.setUnit(unit);
	}

	public SUser getUser() {
		return user;
	}

	public void setUser(SUser user) {
		this.user = user;
	}

}
